Andrea Corallo [Thu, 6 May 2021 14:28:43 +0000 (16:28 +0200)]
Rename comp-eln-load-path → native-comp-eln-load-path
* src/comp.c (Fcomp_el_to_eln_filename): Rename comp-eln-load-path →
native-comp-eln-load-path.
* src/lread.c (maybe_swap_for_eln): Likewise.
* lisp/startup.el (native-comp-eln-load-path)
(normal-top-level): Likewise.
* lisp/emacs-lisp/comp.el (comp-spill-lap-function, comp-final)
(comp-eln-load-path-eff, comp-trampoline-compile)
(comp-clean-up-stale-eln, comp-run-async-workers)
(comp-lookup-eln, batch-byte-native-compile-for-bootstrap): Likewise.
Andrea Corallo [Thu, 6 May 2021 13:00:00 +0000 (15:00 +0200)]
Rename comp-warning-on-missing-source
* src/lread.c (maybe_swap_for_eln): Rename
comp-warning-on-missing-source →
native-comp-warning-on-missing-source.
* src/comp.c (syms_of_comp): Likewise.
* lisp/emacs-lisp/comp.el (native-comp-warning-on-missing-source):
Likewise.
Andrea Corallo [Thu, 6 May 2021 12:57:48 +0000 (14:57 +0200)]
Rename comp-native-driver-options → native-comp-driver-options
* src/comp.c (add_driver_options, syms_of_comp): Rename
comp-native-driver-options → native-comp-driver-options.
* lisp/emacs-lisp/comp.el (native-comp-driver-options)
(comp-ctxt, comp-spill-lap-function, comp-final)
(comp-run-async-workers): Likewise.
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise.
Andrea Corallo [Thu, 6 May 2021 12:55:30 +0000 (14:55 +0200)]
* Rename comp-async-query-on-exit → native-comp-async-query-on-exit
* lisp/emacs-lisp/comp.el (native-comp-async-query-on-exit)
(comp-run-async-workers): Rename comp-async-query-on-exit →
native-comp-async-query-on-exit.
Andrea Corallo [Thu, 6 May 2021 12:54:32 +0000 (14:54 +0200)]
* Rename comp-async-report-warnings-errors
* lisp/emacs-lisp/comp.el (native-comp-async-report-warnings-errors)
(comp-accept-and-process-async-output): Rename
comp-async-report-warnings-errors →
native-comp-async-report-warnings-errors.
Andrea Corallo [Thu, 6 May 2021 12:53:28 +0000 (14:53 +0200)]
* Rename comp-async-env-modifier-form → native-comp-async-env-modifier-form
* lisp/emacs-lisp/comp.el (native-comp-async-env-modifier-form)
(comp-final, comp-run-async-workers): Rename
comp-async-env-modifier-form → native-comp-async-env-modifier-form.
Andrea Corallo [Thu, 6 May 2021 12:52:43 +0000 (14:52 +0200)]
* Rename comp-async-all-done-hook → native-comp-async-all-done-hook
* lisp/emacs-lisp/comp.el (native-comp-async-all-done-hook)
(comp-run-async-workers): Rename comp-async-all-done-hook →
native-comp-async-all-done-hook.
Andrea Corallo [Thu, 6 May 2021 12:49:31 +0000 (14:49 +0200)]
* Rename comp-async-cu-done-functions → native-comp-async-cu-done-functions
* lisp/emacs-lisp/comp.el (native-comp-async-cu-done-functions)
(comp-run-async-workers): Rename comp-async-cu-done-functions →
native-comp-async-cu-done-functions.
Andrea Corallo [Thu, 6 May 2021 08:27:57 +0000 (10:27 +0200)]
* Rename comp-async-jobs-number → native-comp-async-jobs-number
* lisp/emacs-lisp/comp.el (native-comp-async-jobs-number)
(comp-effective-async-max-jobs, native--compile-async)
(native-compile-async): Rename comp-async-jobs-number →
native-comp-async-jobs-number.
Andrea Corallo [Thu, 6 May 2021 08:26:33 +0000 (10:26 +0200)]
Rename comp-never-optimize-functions → native-comp-never-optimize-functions
* lisp/emacs-lisp/nadvice.el (advice--add-function): Rename
comp-never-optimize-functions → native-comp-never-optimize-functions.
* lisp/emacs-lisp/comp.el (native-comp-never-optimize-functions)
(comp-subr-trampoline-install, comp-call-optim-form-call): Likewise.
Andrea Corallo [Thu, 6 May 2021 08:19:35 +0000 (10:19 +0200)]
Rename comp-bootstrap-deny-list → native-comp-bootstrap-deny-list
* lisp/emacs-lisp/comp.el (native-comp-bootstrap-deny-list)
(batch-native-compile): Rename comp-bootstrap-deny-list →
native-comp-bootstrap-deny-list.
Andrea Corallo [Thu, 6 May 2021 08:18:32 +0000 (10:18 +0200)]
* Rename comp-always-compile → native-comp-always-compile
* lisp/emacs-lisp/comp.el (native-comp-always-compile)
(comp-run-async-workers): comp-always-compile →
native-comp-always-compile.
Andrea Corallo [Thu, 6 May 2021 08:17:12 +0000 (10:17 +0200)]
* Rename comp-verbose -> native-comp-verbose
* lisp/emacs-lisp/comp.el (native-comp-verbose, comp-log)
(comp-log-func, comp-final, comp-run-async-workers): Rename
comp-verbose -> native-comp-verbose.
Andrea Corallo [Thu, 6 May 2021 08:14:00 +0000 (10:14 +0200)]
Rename comp-debug -> native-comp-debug
* src/comp.c (emit_ctxt_code, syms_of_comp): Rename comp-debug ->
native-comp-debug.
* lisp/emacs-lisp/comp.el (native-comp-debug, comp-ctxt)
(comp-spill-lap-function, comp-run-async-workers): Likewise.
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise.
* test/src/comp-tests.el (comp-tests-bootstrap): Likewise.
Andrea Corallo [Thu, 6 May 2021 08:12:48 +0000 (10:12 +0200)]
Rename comp-speed -> native-comp-speed
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename
comp-speed -> native-comp-speed.
* lisp/emacs-lisp/comp.el (native-comp-speed, comp-ctxt, comp-func,
comp-spill-lap-function, comp-trampoline-compile,
comp-run-async-workers): Likewise.
* src/comp.c (emit_ctxt_code, load_comp_unit, syms_of_comp): Likewise.
* test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1)
(comp-tests-check-ret-type-spec, comp-tests-pure): Likewise.
Andrea Corallo [Thu, 6 May 2021 07:57:35 +0000 (09:57 +0200)]
* Rename comp-limple-mode -> native-comp-limple-mode
* lisp/emacs-lisp/comp.el (comp-limple-lock-keywords): Doc update.
(native-comp-limple-mode, comp-log-to-buffer): Rename comp-limple-mode
-> native-comp-limple-mode.
Michael Albinus [Thu, 6 May 2021 15:15:30 +0000 (17:15 +0200)]
In Tramp, use scp "-T" argument if available
* lisp/net/tramp-sh.el (tramp-scp-strict-file-name-checking): New defvar.
(tramp-scp-strict-file-name-checking): New defun.
(tramp-do-copy-or-rename-file-out-of-band): Use it.
(tramp-methods) <scp, scpx>: Use "%x".
(tramp-make-copy-program-file-name): Use local quoting.
(tramp-sh-handle-make-process): Don't call
`tramp-maybe-open-connection', this happens implicitly by
`tramp-send-command'.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
* test/lisp/net/tramp-tests.el (tramp-test40-special-characters)
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls): Don't skip for
`tramp--test-windows-nt-and-scp-p'.
Eli Zaretskii [Thu, 6 May 2021 15:08:53 +0000 (18:08 +0300)]
; * src/doc.c (syms_of_doc): Fix last change.
Stefan Kangas [Thu, 6 May 2021 14:31:20 +0000 (16:31 +0200)]
Improve formatting in text-quoting-style docstring
* src/doc.c (syms_of_doc) <text-quoting-style>: Doc fix; improve
formatting for readability.
Stefan Kangas [Thu, 6 May 2021 14:05:36 +0000 (16:05 +0200)]
Remove another variable alias obsolete since Emacs 23
* lisp/menu-bar.el (menu-bar-files-menu): Delete variable alias for
`menu-bar-file-menu'.
* etc/NEWS: Announce its deletion.
Mattias Engdegård [Thu, 6 May 2021 13:15:55 +0000 (15:15 +0200)]
Don't fail image-tests if JPEG format isn't compiled in
* test/lisp/image-tests.el (image-type/from-filename):
Make jpeg test conditional. Test pbm (always present).
Mattias Engdegård [Thu, 6 May 2021 13:50:39 +0000 (15:50 +0200)]
Tidy file-matching regexps and remove some ineffective backslashes
* lisp/emacs-lisp/package.el (package--delete-directory):
* lisp/net/tramp-cmds.el (tramp-recompile-elpa):
Escape dot; replace $ with \'.
* lisp/help.el (help-for-help):
* lisp/transient.el (transient-font-lock-keywords):
Remove useless backslashes.
Lars Ingebrigtsen [Thu, 6 May 2021 11:30:52 +0000 (13:30 +0200)]
Make (setf (map-elt ...)) return the value in the alist/plist cases
* lisp/emacs-lisp/map.el (map-elt): Return the value in the list
case (which can signal a `map-not-inplace' error.
(map-elt): Return the value in the list case, too (bug#47572).
Matt Armstrong [Thu, 6 May 2021 11:29:33 +0000 (13:29 +0200)]
Add tests for `map-elt'
* test/lisp/emacs-lisp/map-tests.el: Add (failing) tests for `map-elt'
(bug#47572).
Michael Albinus [Thu, 6 May 2021 11:08:56 +0000 (13:08 +0200)]
Fix bug#47625 in dired
* lisp/dired-aux.el (dired-create-files): Check, that
`dired-do-symlink' does not create symlinks on different hosts.
(Bug#47625)
Alan Mackenzie [Thu, 6 May 2021 10:48:14 +0000 (10:48 +0000)]
Fix wrong handling of minibuffers when frames get iconified/made invisible
This should fix bug #47766.
* lisp/window.el (window-deletable-p): Add a quote where it was missing from
minibuffer-follows-selected-frame.
* src/frame.c (check_minibuf_window): Delete the function.
(delete_frame): In place of calling check_minibuf_window, call
move_minibuffers_onto_frame, possibly to move minibuffers onto the new current
frame.
(Fmake_frame_invisible, Ficonify_frame): Remove calls to check_minibuf_window.
* src/minibuf.c (Factive_minibuffer_window): Search the frames for the active
minibuffer rather than just assuming minibuf_window has been correctly
updated.
Harald Jörg [Thu, 6 May 2021 10:33:40 +0000 (12:33 +0200)]
cperl-mode: Eliminate bad interpretation of ?foo?
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Delete
?? from the allowed bare regexp delimiters.
(cperl-short-docs): Delete ?...? from the documentation.
* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug-47598):
Add tests for good, bad, and ambiguous use of ? as regex
delimiter (bug#47598).
Lars Ingebrigtsen [Thu, 6 May 2021 10:21:11 +0000 (12:21 +0200)]
Only look at the headers when computing the envelope from address
* lisp/mail/smtpmail.el (smtpmail-send-it)
(smtpmail-send-queued-mail, smtpmail-via-smtp):
* lisp/mail/sendmail.el (sendmail-send-it): Only look at the
headers when computing the envelope from (bug#47616).
Dmitrii Kuragin [Thu, 6 May 2021 09:45:06 +0000 (11:45 +0200)]
Fix ispell program comparison
* lisp/textmodes/ispell.el (ispell-set-spellchecker-params):
Compare strings with `equal', not `eq' (since the identity of the
string may change) (bug#48246).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Thu, 6 May 2021 09:24:39 +0000 (11:24 +0200)]
Make Info completion more robust
* lisp/info.el (Info-build-node-completions): Don't signal an
error if there are no nodes in the file we're computing
completions over (bug#47771).
Daniel Martín [Thu, 6 May 2021 08:27:03 +0000 (10:27 +0200)]
Add a help option to the open large files prompt
* lisp/files.el (files--ask-user-about-large-file-help-text): New
function that returns information about opening large files in
Emacs. (Bug#45412)
(files--ask-user-about-large-file): Use read-multiple-choice to
display the available actions.
* etc/NEWS: Advertise the new feature.
Daniel Martín [Thu, 6 May 2021 08:21:59 +0000 (10:21 +0200)]
Extend read-multiple-choice to support free-form help descriptions
* lisp/emacs-lisp/rmc.el (read-multiple-choice): Add a new argument to
override the default help description in `read-multiple-choice'. Use
the `help-char' variable instead of ?\C-h. Also support the `edit'
action from `query-replace-map', so that help links can be visited by
entering a recursive edit.
Karl Fogel [Wed, 5 May 2021 21:40:52 +0000 (16:40 -0500)]
New option to confirm deletion in bookmark menu
* lisp/bookmark.el (bookmark-menu-confirm-deletion): New defcustom.
(bookmark-delete-all): Add comment explaining why we don't use the new
confirmation formula here.
(bookmark-bmenu-execute-deletions): Conditionally confirm deletion.
Note that the bulk of the code diff here is just reindentation of an
otherwise unchanged `let' expression.
* etc/NEWS: Announce the new option.
Thanks to Lars Ingebrigtsen and Eli Zaretskii for review, and thanks
to Oliver Taylor for suggesting the option in the first place:
https://lists.gnu.org/archive/html/emacs-humanities/2021-02/msg00022.html
From: Oliver Taylor
Subject: Re: [emacs-humanities] Extending Emacs Bookmarks to Work with EWW
To: Karl Fogel
Cc: Stefan Kangas, Emacs-humanities mailing list
Date: Wed, 3 Feb 2021 20:21:59 -0800
Message-Id: <
936D47EA-4D11-452B-8303-
971B6386877B@me.com>
Andrea Corallo [Wed, 5 May 2021 15:18:07 +0000 (17:18 +0200)]
Rename feature `nativecomp' into `native-compile'
* test/src/comp-tests.el : Rename feature `nativecomp' into
`native-compile'.
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun): Likewise.
* src/comp.c (syms_of_comp): Likewise.
* lisp/startup.el (normal-top-level): Likewise.
* lisp/loadup.el: Likewise.
* lisp/help.el (help-function-arglist): Likewise.
* lisp/emacs-lisp/package.el (package--native-compile-async)
(package--delete-directory): Likewise.
* lisp/emacs-lisp/nadvice.el (advice--add-function): Likewise.
* lisp/emacs-lisp/comp.el (comp-ensure-native-compiler): Likewise.
* lisp/emacs-lisp/advice.el (ad-add-advice): Likewise.
Martin Rudalics [Wed, 5 May 2021 16:36:00 +0000 (18:36 +0200)]
Fix setting of 'width' and 'height' frame parameters
* src/frame.c (Fframe_parameters): Fix bogus setting of 'height'
and 'width' parameters.
Andrea Corallo [Wed, 5 May 2021 15:11:08 +0000 (17:11 +0200)]
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defsubst): Fix (bug#48221).
Kazuhiro Ito [Wed, 5 May 2021 15:09:07 +0000 (17:09 +0200)]
Tweak how some Japanese punctuation chars are translated to ASCII
* lisp/language/japan-util.el (japanese-symbol-table): Tweak
Japanese punctuation character translation (bug#47767).
Andrea Corallo [Wed, 5 May 2021 15:00:59 +0000 (17:00 +0200)]
* Better identify native compiler presence in two tests.
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun)
(help-fns-test-lisp-defsubst): Better identify native-comp
presence.
Daniel Mendler [Wed, 5 May 2021 14:58:35 +0000 (16:58 +0200)]
Don't bug out in `Info-goto-node' completion
* lisp/info.el (Info-read-node-name-1): Don't bug out in the
middle of completion, but return nil instead (and issue a message)
(bug#47771).
Boruch Baum [Wed, 5 May 2021 13:05:50 +0000 (15:05 +0200)]
Fix error in ses.el when setting the current row
* lisp/ses.el (ses-jump, ses-list-local-printers)
(ses-list-named-cells): Use `user-error' for user errors.
(ses-set-header-row): Function `ses-set-header-row' was
determining the current row based upon variable `ses--curcell',
but that variable is NIL until one begins an operation on a cell
(eg. keybindings '=', '"'), so navigating to a row was
insufficient to select that row, and further generated an ERROR
because the code was not expecting a NIL value for variable
`ses--curcell' (bug#47784).
Lars Ingebrigtsen [Wed, 5 May 2021 12:59:49 +0000 (14:59 +0200)]
Allow `C-x C-k l' to work even if `C-h l' is unbound
* lisp/kmacro.el (kmacro-edit-lossage): `view-lossage' may be
bound to a different key than `C-h l' (bug#47785).
Matt Beshara [Wed, 5 May 2021 12:49:33 +0000 (14:49 +0200)]
Remove unnecessary call to message in js.el
* lisp/progmodes/js.el (js--end-of-defun-nested): Remove debugging
message left over (bug#48234).
Lars Ingebrigtsen [Wed, 5 May 2021 08:31:33 +0000 (10:31 +0200)]
Use @defmac on eval-{and,when}-compile
* doc/lispref/compile.texi (Eval During Compile): Use @defmac
instead of @defspec on two macros (bug#47862).
Martin Rudalics [Wed, 5 May 2021 08:26:32 +0000 (10:26 +0200)]
Fix two GTK3 event handling issues
* src/xterm.c (handle_one_xevent): For GTK3 PropertyNotify and
MapNotify events explicitly request the stored frame sizes when
the frame changes from iconified to a non-hidden state
(Bug#24526). For Expose events do not change the frame's
visibility or iconified state. For FocusIn events on GTK3 do
not apply the fix for Bug#42655. The latter two changes are to
avoid that plain invisible frames get reported as iconified.
Lars Ingebrigtsen [Wed, 5 May 2021 07:41:49 +0000 (09:41 +0200)]
Make the ELC+ELN lines line up with the other lines
Eric Abrahamsen [Mon, 3 May 2021 16:14:24 +0000 (09:14 -0700)]
Add new defvoo nnimap-keepalive-intervals to Gnus nnimap servers
* lisp/gnus/nnimap.el (nnimap-keepalive-intervals): New per-server
config for customizing when keepalive commands are sent.
(nnimap-keepalive, nnimap-open-connection-1): Consult in these
places. Additionally, use nnimap-streaming -> t when sending the
keepalive NOOP, so we don't wait for the response.
* doc/misc/gnus.texi (Customizing the IMAP Connection): Document.
Basil L. Contovounesios [Tue, 4 May 2021 19:56:37 +0000 (20:56 +0100)]
Remove unused lexical variables in cc-defs.el
* lisp/progmodes/cc-defs.el (c-sc-scan-lists-no-category+1+1)
(c-sc-scan-lists-no-category+1-1, c-sc-scan-lists-no-category-1+1)
(c-sc-scan-lists-no-category-1-1): Remove unused lexical variable
'here' to pacify byte-compilation warnings in cc-engine.el.
Andrea Corallo [Tue, 4 May 2021 19:31:44 +0000 (21:31 +0200)]
* Do not try to load unexistent eln file if async compilation was skipped
* lisp/emacs-lisp/comp.el (comp-run-async-workers): Don't try to
load if the eln file was not produced.
Eli Zaretskii [Tue, 4 May 2021 17:37:33 +0000 (20:37 +0300)]
Fix infloop in lsp-mode
* src/indent.c (line_number_display_width): Make sure the selected
window's buffer is current before using display code on it:
redisplay assumes that the window's buffer is current at all
times. Reported by Evgeny Kurnevsky via lsp-mode's issue 1621,
https://github.com/emacs-lsp/lsp-mode/issues/1621.
Glenn Morris [Tue, 4 May 2021 14:50:28 +0000 (07:50 -0700)]
Merge from origin/emacs-27
40228fffd7 (origin/emacs-27) Fix code for newline-and-indent in skele...
56c4c8ef32 * lisp/jka-compr.el (jka-compr-uninstall): Fix function re...
Glenn Morris [Tue, 4 May 2021 14:50:28 +0000 (07:50 -0700)]
; Merge from origin/emacs-27
The following commits were skipped:
6a46d3d809 (emacs-27) ; Auto-commit of loaddefs files.
ccfd2e20a9 Fix GUD overlay arrows in M-x gdb when debugging over Tram...
e61688f87d Fix setting breakpoints in M-x gdb for remote files. Don'...
Glenn Morris [Tue, 4 May 2021 14:50:25 +0000 (07:50 -0700)]
Merge from origin/emacs-27
101a049f55 Improve doc string of 'tab-width'.
43c154404e * lisp/emacs-lisp/elp.el: Doc fixes.
1984213f62 * lisp/emacs-lisp/pp.el: Doc fixes.
6486c9dc73 * admin/make-tarball.txt: Note to update more files on web...
Basil L. Contovounesios [Tue, 4 May 2021 14:08:16 +0000 (15:08 +0100)]
Remove as of recently unused GDK macro
Its only use was removed in the recent change of 2021-04-27 "Major
rewrite of adjust_frame_size", announced in the following thread:
https://lists.gnu.org/r/emacs-devel/2021-04/msg01162.html
* src/gtkutil.c [USE_GTK && !HAVE_GTK3] (gdk_window_get_geometry):
Remove unused macro to pacify -Wunused-macros build warning.
Basil L. Contovounesios [Tue, 4 May 2021 09:36:56 +0000 (10:36 +0100)]
; Fix and simplify last change in bookmark.el.
Lars Ingebrigtsen [Tue, 4 May 2021 09:48:27 +0000 (11:48 +0200)]
Fix inconsistent behaviour in find-file-noselect when using nowarn
* lisp/files.el (after-find-file): Behave the same in when
warning/not warning (bug#47850). This fixes this test case:
(switch-to-buffer (find-file-noselect "non-existing-dir/test.el" t))
which would leave the buffer read-only.
Lars Ingebrigtsen [Tue, 4 May 2021 09:25:33 +0000 (11:25 +0200)]
Allow TAB to go to a key in EPA key buffers
* lisp/epa.el (epa--insert-keys): Allow TAB to go to the keys
(bug#47876).
Lars Ingebrigtsen [Tue, 4 May 2021 09:04:38 +0000 (11:04 +0200)]
Fix doc marker for previous bookmark NEWS change
Boruch Baum [Tue, 4 May 2021 08:58:52 +0000 (10:58 +0200)]
Fontify lines when setting a bookmark
* lisp/bookmark.el (bookmark-fontify): New user option (bug#48179).
(bookmark-face): New face.
(bookmark--fontify, bookmark--unfontify): New functions.
(bookmark-set-internal, bookmark--jump-via, bookmark-delete): Use
them.
Lars Ingebrigtsen [Tue, 4 May 2021 07:57:30 +0000 (09:57 +0200)]
Ensure updating the animated image in all windows
* lisp/image.el (image-show-frame): Simplify the window update --
pass in the buffer, which is a noop if the buffer isn't displayed.
Martin Rudalics [Tue, 4 May 2021 07:17:11 +0000 (09:17 +0200)]
Fix a problem with x_set_tab_bar_lines (Bug#46827)
* src/xfns.c (x_set_tab_bar_lines): Call
x_change_tab_bar_height only if the number of tab bar lines
changed from or to zero (Bug#46827).
* src/xterm.c (x_make_frame_visible): Make frame_size_history
update less noisy by doing it only if the frame wasn't visible
before.
Stefan Kangas [Mon, 3 May 2021 22:59:10 +0000 (00:59 +0200)]
; * etc/NEWS: Fix typo.
Philip K [Mon, 3 May 2021 09:35:41 +0000 (11:35 +0200)]
project--buffer-list: Avoid Tramp buffers when possible
* project.el (project--buffer-list): Add file-remote-p check.
Michael Albinus [Mon, 3 May 2021 14:52:18 +0000 (16:52 +0200)]
Fix unquoting of file names in subprocesses (Bug#48177)
* lisp/files.el (file-name-non-special):
Improve handling of inhibit-file-name-handlers.
* src/callproc.c (Fcall_process, call_process): Unquote infile,
error_file and output_file. (Bug#48177)
* test/lisp/files-tests.el (files-tests-file-name-non-special--subprocess)
(files-tests-file-name-non-special-file-name-all-completions)
(files-tests-file-name-non-special-file-name-completion): Adapt tests.
Mauro Aranda [Mon, 3 May 2021 13:54:28 +0000 (10:54 -0300)]
; * etc/tutorials/TUTORIAL.es: Fix grammar in recent change
Alan Third [Sun, 2 May 2021 21:38:13 +0000 (22:38 +0100)]
Fix incorrect resizing behaviour on macOS (bug#48157, bug#48162)
* src/nsterm.m ([EmacsView viewDidResize:]): The drawing buffer can be
resized independently of Emacs's idea of the frame size.
Co-authored-by: martin rudalics <rudalics@gmx.at>
Lars Ingebrigtsen [Mon, 3 May 2021 10:21:11 +0000 (12:21 +0200)]
ediff shouldn't alter the kill ring when copying a diff
* lisp/vc/ediff-util.el (ediff-copy-diff, ediff-pop-diff): Don't
alter the kill ring (bug#47881).
Lars Ingebrigtsen [Mon, 3 May 2021 09:51:53 +0000 (11:51 +0200)]
Speed up animation of non-displayed buffers
* lisp/image.el (image-show-frame): Don't force an update if the
buffer with the animation isn't in a window (bug#47895). Also
just update the window in question.
Lars Ingebrigtsen [Mon, 3 May 2021 09:45:22 +0000 (11:45 +0200)]
Speed up animation of non-displayed images
* lisp/image.el (image-animate): Only compute the animation data
once -- this avoids recomputing the image on every iteration when
the image is not displayed (bug#47895).
Lars Ingebrigtsen [Mon, 3 May 2021 08:45:30 +0000 (10:45 +0200)]
Note that function symbols are preferred in `add-hook'
* lisp/subr.el (add-hook): Note that FUNCTION should preferably be
a symbol (bug#47992).
Steve Purcell [Mon, 3 May 2021 07:41:44 +0000 (09:41 +0200)]
ruby-mode.el: puts and printf do not require args
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): puts and
printf can be called without arguments, so the font locking of
"bare" calls to either is incorrect. The fix is to font-lock them
as for other kernel methods which accepts zero or more arguments
(bug#48180).
Lele Gaifax [Mon, 3 May 2021 07:37:38 +0000 (09:37 +0200)]
Align TUTORIAL.it to the English version
* etc/tutorials/TUTORIAL.it: Reference 'describe-command' to replicate
recent change. Add also a space before '<Invio>' in several places,
mimicking the usage of <Return> in the English version (bug#48183).
Philipp Stephani [Sun, 2 May 2021 18:57:38 +0000 (20:57 +0200)]
Fix code for newline-and-indent in skeleton language.
The code for this is the symbol 'n', which is usually spelled as '\n'
here, not the character ?\n.
* doc/misc/autotype.texi (Skeleton Language): Fix item for
newline-and-indent.
Martin Rudalics [Sun, 2 May 2021 15:44:01 +0000 (17:44 +0200)]
Add two changes announced but not included in previous commit
* src/frame.c (adjust_frame_size): Remove extra
inhibit_horizontal/_vertical checks. Improve the implied
resize check when INHIBIT equals 2.
Stefan Kangas [Sun, 2 May 2021 15:35:55 +0000 (17:35 +0200)]
* etc/tutorials/TUTORIAL.sv: Adjust to latest change in TUTORIAL.
Stefan Kangas [Sun, 2 May 2021 15:35:31 +0000 (17:35 +0200)]
* etc/tutorials/TUTORIAL.es: Adjust to latest change in TUTORIAL.
Alan Mackenzie [Sun, 2 May 2021 15:22:36 +0000 (15:22 +0000)]
* lisp/progmodes/cc-defs (c-save-buffer-state): Amend debug spec, t to let*
This should solve part of bug #48100.
Eli Zaretskii [Sun, 2 May 2021 15:17:16 +0000 (18:17 +0300)]
* etc/tutorials/TUTORIAL.he: Adjust to latest change in TUTORIAL.
Stefan Kangas [Sun, 2 May 2021 13:04:00 +0000 (15:04 +0200)]
Add new help command 'describe-command'
* lisp/help-fns.el (describe-command): New command.
(help-fns--describe-function-or-command-prompt): New helper
function to prompt for a function or function. (Bug#46627)
(describe-function): Use above new helper function.
* lisp/help.el (help-map): Bind above new command to `C-h x'.
(help-for-help): Add this new command to the help summary.
* lisp/menu-bar.el (menu-bar-describe-menu): Add the new command to
the help menu.
* doc/emacs/help.texi (Help Summary, Name Help): Document
'describe-command', and update documentation on 'describe-function'.
* etc/tutorials/TUTORIAL: Change reference from 'describe-function' to
'describe-command'.
Stefan Monnier [Sun, 2 May 2021 12:40:28 +0000 (08:40 -0400)]
* lisp/apropos.el (apropos-value, apropos-local-value): Tweak for lexbind
Don't skip symbols for the nowadays lexically scoped local vars.
Basil L. Contovounesios [Sun, 2 May 2021 11:59:19 +0000 (12:59 +0100)]
; Fix last change in lisp/replace.el.
Alan Third [Sun, 2 May 2021 10:25:40 +0000 (11:25 +0100)]
Fix crash when resizing GNUstep builds
The toolkit can send far too many resize notifications, so be more
careful when we take action after receiving one.
* src/nsfns.m (ns_set_tool_bar_lines): Remove unneeded NSTRACE.
* src/nsterm.m ([EmacsView viewDidResize:]): Don't report resizes to
Emacs when the same change has already been reported and delayed.
Stefan Kangas [Sun, 2 May 2021 10:19:59 +0000 (12:19 +0200)]
* lisp/help-macro.el: Doc fix.
Stefan Kangas [Sun, 2 May 2021 10:10:54 +0000 (12:10 +0200)]
Bind S-SPC to scroll-down in help-for-help
* lisp/help-macro.el (make-help-screen): Bind S-SPC to
scroll-down. Thanks to Dmitry Gutov <dgutov@yandex.ru>.
Stefan Kangas [Sat, 1 May 2021 07:55:59 +0000 (09:55 +0200)]
Minor doc fixes in simple.el
* lisp/simple.el (next-error-move-function)
(next-error-found-function, next-error-found)
(previous-error-no-select, eval-expression-get-print-arguments)
(undo-adjust-elt, undo-adjust-beg-end): Minor doc fixes.
Nikolay Kudryavtsev [Sat, 1 May 2021 12:27:21 +0000 (15:27 +0300)]
Don't use pdumper-stats with unexec
* lisp/emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Check if
pdumper-stats is bound before using it.
Lars Ingebrigtsen [Sun, 2 May 2021 09:28:30 +0000 (11:28 +0200)]
Inhibit lines in doc-view-mode
* lisp/doc-view.el (doc-view-mode): Inhibit line number modes
(bug#47974). Change suggested by Gregory Heytings.
Eric Skoglund [Sun, 2 May 2021 09:13:45 +0000 (11:13 +0200)]
Add newline and tab matching documentation to query-replace-regexp
* lisp/replace.el: Add \n and \t matching information to
query-replace-regexp docstring (bug#47981).
Lars Ingebrigtsen [Sun, 2 May 2021 08:41:49 +0000 (10:41 +0200)]
Tweak filtering some more
This should get the ./temacs continuation lines right.
Martin Rudalics [Sun, 2 May 2021 08:33:22 +0000 (10:33 +0200)]
Make adjust_frame_size set up frame's new_width/_height too (Bug#17120)
The purpose of this change is to have implied frame size changes
pick up sizes requested by previous explicit size changes not
only after they have been confirmed by the WM but already when
they are initially passed to adjust_frame_size (Bug#17120).
* src/dispextern.h (delayed_size_change): Remove extern.
* src/dispnew.c (delayed_size_change): Make static again.
(do_pending_window_change): Call change_frame_size only if F's
new_size_p flag is set.
(change_frame_size_1): Set/reset F's new_size_p flag
* src/frame.c (adjust_frame_size): Remove extra
inhibit_horizontal/_vertical checks. Improve the implied
resizes check with INHIBIT equals 2. Set F's new_width and
new_height and reset F's new_size_p flag when we run
set_window_size_hook with INHIBIT 0 or 1.
* src/frame.h (struct frame): New bit slot new_size_p.
* src/gtkutil.c (xg_frame_resized): Use F's new_size_p flag
instead of delayed_size_change to decide whether to call
change_frame_size.
(xg_frame_set_char_size): Call frame_size_history_extra before
waiting for the ConfigureNotify event.
* src/xterm.c (handle_one_xevent): Use F's new_size_p flag
instead of delayed_size_change to decide whether to call
change_frame_size.
Boruch Baum [Sun, 2 May 2021 08:22:21 +0000 (10:22 +0200)]
Suppress false positives in apropos-value
* lisp/apropos.el (apropos-value): Skip more apropos-internal
variables (bug#48063).
(apropos-value-internal): Skip the first value in the history
values, which always contains the match.
Philipp Stephani [Sat, 1 May 2021 23:01:28 +0000 (01:01 +0200)]
* lisp/jka-compr.el (jka-compr-uninstall): Fix function reference.
Stefan Monnier [Sat, 1 May 2021 19:51:52 +0000 (15:51 -0400)]
* lisp/simple.el (newline): Make the hook function remove itself
(copy-region-as-kill, kill-ring-save): Simplify interactive spec.
Stefan Monnier [Sat, 1 May 2021 19:30:57 +0000 (15:30 -0400)]
* lisp/minibuffer.el (completing-read-default): Fix bug#45474
Set `minibuffer-completion-*` variables buffer-locally instead of using
a global let-binding. This should also help make completion work
correctly when multiple minibuffers are simultaneously active.
Alan Third [Sat, 1 May 2021 16:50:25 +0000 (17:50 +0100)]
Fix infinite loop on GNUstep when toolbar updated
* src/nsterm.m ([EmacsView viewDidResize:]): Use Emacs's existing
knowledge of the frame size to decide whether to resize or not.
Alan Third [Sat, 1 May 2021 11:16:10 +0000 (12:16 +0100)]
Fix NS build warnings
* src/nsfns.m (Fx_create_frame): Remove unused variables.
Glenn Morris [Sat, 1 May 2021 13:29:15 +0000 (06:29 -0700)]
; Auto-commit of loaddefs files.
Glenn Morris [Sat, 1 May 2021 13:11:33 +0000 (06:11 -0700)]
; Auto-commit of loaddefs files.
Jim Porter [Sat, 1 May 2021 10:09:36 +0000 (12:09 +0200)]
Fix GUD overlay arrows in gdb-mi when debugging over Tramp
* lisp/progmodes/gdb-mi.el (gdb-frame-handler): Use local part of
file name when setting `gud-last-frame'.
Jim Porter [Sat, 1 May 2021 10:05:37 +0000 (12:05 +0200)]
Fix GUD overlay arrows in M-x gdb when debugging over Tramp. Don't merge
* lisp/progmodes/gdb-mi.el (gdb-frame-handler): Use local part of
file name when setting `gud-last-frame'.
Jim Porter [Sat, 1 May 2021 09:56:19 +0000 (11:56 +0200)]
Fix setting breakpoints in M-x gdb for remote files. Don't merge
* lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer): Fix modification
of GDB/MI "fullname" property for remote files